<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <button>scroll bottom</button>
  <script>
    for(let i = 0; i <= 1000; i++) {
      const div = document.createElement('div')
      div.innerText = i
      div.style.background = `rgba(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255}, ${Math.random()})`
      document.body.appendChild(div)
    }

    document.querySelector('button')
      .addEventListener('click', () => {
        window.scrollTo({
          top: 50000,
          left: 0,
          behavior: 'smooth'
        })
      })
  </script>
</body>
</html>